import service from "./request.js";

export default {
  // 修改用户个人信息
  update(query) {
    return service({
      method: "PUT",
      url: "/admin-api/system/user/profile/update",
      data: query,
    });
  },
  // 修改用户个人密码
  updatePassword(query) {
    return service({
      method: "PUT",
      url: "/admin-api/system/user/profile/update-password",
      data: query,
    });
  },
  // 上传用户个人头像
  updateAvatar(query) {
    return service({
      method: "POST",
      url: "/admin-api/system/user/profile/update-avatar",
      data: query,
    });
  },
  // 获得登录用户信息
  get(query) {
    return service({
      method: "GET",
      url: "/admin-api/system/user/profile/get",
      data: query,
    });
  },
};
